package com.banmoon.strategy;

public class Person {

    private Strategy strategy;

    public Person(Strategy strategy) {
        this.strategy = strategy;
    }

    public void travel(){
        System.out.println("去旅行啦");
        packing();
        strategy.trip();
        play();
    }

    public void packing(){
        System.out.println("正在收拾行李");
    }

    public void play(){
        System.out.println("玩得好开心，旅游真好");
    }

}
